﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="cj_shenpi.aspx.cs" Inherits="Default3" Title="审批计划单" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">

        .style7
        {
            font-size: small;
            text-align: left;
        }
        .新建样式1
        {
            text-align: center;
        }
        .style8
        {
            font-size: small;
        }
        .style21
        {
            font-size: small;
        }
        </style>
</head>
<body background="images/login-bg.jpg">
    <form id="form1" runat="server">
    <div style="text-align: center">
    
    <div class="style7">
    
        <span class="style7">当前位置：</span><asp:HyperLink ID="HyperLink1" runat="server" 
            CssClass="style7" NavigateUrl="~/index.aspx" style="color: #000000" 
            ToolTip="点击返回主页面">主页面</asp:HyperLink>
        <span class="style7">→ 审批计划单</span><br class="style7" />
        <br /></div>
<div>
        <br />
        <br /><b>审批计划单<br />
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataKeyNames="id" DataSourceID="SqlDataSource1" 
            EnableModelValidation="True" ForeColor="#333333" GridLines="None" 
            style="font-size: small; text-align: center" 
            onrowdatabound="GridView1_RowDataBound">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField HeaderText="序号"></asp:TemplateField>
                <asp:BoundField DataField="lei" HeaderText="类别" SortExpression="lei" >
                <ItemStyle Width="50px" />
                </asp:BoundField>
                <asp:BoundField DataField="banzu" HeaderText="班组" SortExpression="banzu" >
                                <ItemStyle Width="80px" />
                </asp:BoundField>
                                <asp:BoundField DataField="chehao" HeaderText="车号" SortExpression="chehao" >
                                <ItemStyle Width="60px" />
                                </asp:BoundField>
                <asp:BoundField DataField="nian" HeaderText="年" SortExpression="nian" />
                <asp:BoundField DataField="yue" HeaderText="月" SortExpression="yue" />
                                <asp:BoundField DataField="mingcheng" HeaderText="燃油种类" 
                                    SortExpression="mingcheng" >
                                <ItemStyle Width="80px" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="danjia" HeaderText="单价(元)" 
                    SortExpression="danjia" DataFormatString="{0:c}" >
                                <ItemStyle Width="40px" />
                                </asp:BoundField>
                <asp:BoundField DataField="banzushuliang" HeaderText="班组计划(升)" 
                    SortExpression="banzushuliang" DataFormatString="{0:N0}" />
                <asp:TemplateField HeaderText="车间审批(升)" SortExpression="chejianshuliang">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("chejianshuliang") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("banzushuliang") %>' 
                            Width="30px"></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="beizhu" HeaderText="备注" SortExpression="beizhu" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:xxnewsConnectionString %>" 
            SelectCommand="SELECT * FROM [ranyouxiaohao] WHERE ([id] = @id) ORDER BY [id]">
            <SelectParameters>
                <asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <span class="style8">
        <br />
        当前登录用户：<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
        <br />
        </span>
        <br />
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
            onclientclick="return confirm('审批提交后将无法修改，确认继续吗？')" Text="提交至段审批" />
        <br /></b>
    </div>
    </div>
    </form>
    <p class="style21" style="TEXT-ALIGN: center">
        &nbsp;<br />
        &nbsp;安康供电段信息中心制作 2012</p>
</body>
</html>
